package com.ssrs.batch.core.exception;

/**
 * @author ssrs
 */
public class BatchServiceException extends Exception
{
    private static final long serialVersionUID = 1L;
    protected final String code;
    protected final String message;

    public BatchServiceException(String message)
    {
        this.code = "";
        this.message = message;
    }

    public BatchServiceException(String code, String message)
    {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    @Override
    public String getMessage()
    {
        return message;
    }
}